package cn.group.service;

import cn.group.domain.Student;
import cn.group.domain.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface StudentService {
    //查询所有学生
    PageInfo<Student> queryAllStu(Integer currentPage,Integer pageSize);

    //根据id查询一个学生
    Map<String,Object> queryOneStuById(Integer id);

    //更新一个学生信息
    Boolean updateStu(Student stu);

    //删除一个学生
    Boolean deleteStu(Integer id);

    boolean addUser(Student stu);

    PageInfo<Student> queryStuByCondition(Integer currentPage, Integer pageSize, String keyword);

    Student queryByUsername(String username);

    PageInfo<Student> queryStuByTId(Integer currentPage, Integer pageSize, Integer uid);
}
